<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="easyui-layout" data-options="fit:'true'">   
	<div data-options="region:'west',title:'用户管理'" style="width:200px;">
		<ul id="khgl_yhgl"></ul>  
	</div>      
    <div data-options="region:'center',title:'客户工程'">
    <div id="tb">
			<a style="float:left;" href="javascript:openGcmc();" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">新增</a>
			<a style="float:left;" href="javascript:updateGcmc();" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
			<a style="float:left;" href="javascript:deleteGcmc();" class="easyui-linkbutton" data-options="iconCls:'icon-delete',plain:true">删除</a>
			<!-- 搜索框 -->
			<div style="float:left;position:relative;top:2px;">
				<input id="ss" class="easyui-searchbox" style="width:300px" 
					data-options="searcher:query,prompt:'请输入搜索条件',menu:'#mm'">
				</input>
				<div id="mm" style="width:120px"> 
					<div data-options="name:'gcmc_name',iconCls:'icon-ok'">工程名称</div> 
					<div data-options="name:'gcmc_id'">客户id</div> 
				</div> 
			</div> 	  		
		</div>
		              
    	<table id="khgl_gcgl"
    			data-options="fitColumns:true,rownumbers:true,pagination:true,toolbar:'#tb'">    			
    		<thead>
    		 
    			<tr>
    				<th data-options="field:'check',checkbox:true,width:100">全选</th>
    				<th data-options="field:'gcmc_id',width:100">工程编号</th>
    				<th data-options="field:'gcmc_name',width:100">工程名称</th>
    				<th data-options="field:'khmc_id',width:100">用户id</th>
    				<th data-options="field:'opr',formatter:showOpr,width:100">操作</th>
    			</tr>
    		</thead>
    	</table>
    </div>   
</div> 
<!-- 工程信息窗口 -->
<div id="gcmc_window">
	<form id="gcmc_info" method="post">   
	    <div>   
	        <label>工程名称:</label>   
	        <input class="easyui-validatebox" type="text" name="gcmc_name" data-options="required:true" />   
	    </div>   
	    <div>   
	        <label>客户名称:</label>   
	        <input class="easyui-combobox" name="khmc_id" 
	        data-options="valueField:'id',textField:'text',url:'/khmc/getKhmc'" />
	    </div>   
	</form> 
</div> 
<script type="text/javascript" src="/js/khgl.js"></script>
</body>
</html>